#include "stm32f10x.h"
#include "motor.h"
#include "encoder.h"
#include "pwm.h"
#include "delay.h"
#include "control.h"
#include "usart.h"     
#include "sys.h"
#include "WIFI.h"
#include "dht11.h"
#include "TRACK.h"

extern u8 dat[5];

 int main(void)
 {	
		
		delay_init();
		Usart1_Init(115200);
		//WIFI_Init();
		MOTOR_GPIO_Init();
		MOTOR_PWM_Init(7199,0);
		TRACK_Init();
		TIM1_Encoder_Init();
		TIM2_Encoder_Init();
		TIM3_Encoder_Init();
		TIM4_Encoder_Init();	
		TIM6_INT_Init();
		
  while(1)
	{
	 	//DHT11_Send();
		
	}

}
